//
//  SettingTableViewCell.m
//  CoolFM
//
//  Created by 曹曹 on 16/8/30.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "SettingTableViewCell.h"
#import "UIView+Frame.h"

@implementation SettingTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUp];
    }
    return self;
}

- (void)setUp {
    CGFloat labelW = 30;
    CGFloat margin = 10;
    CGFloat height = self.contentView.gx_height;
    _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, self.contentView.gx_width - margin * 2 - labelW, height)];
    [self.contentView addSubview:_titleLabel];
    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.gx_width - labelW - margin, 0, labelW, height)];
    [self.contentView addSubview:label];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
